<style>
.red{color:red;}
</style>
<div>
<form action="" method="get">

关键字：<input type="text" name="keyword" value="<?=$keyword?>" />&nbsp;&nbsp;
<input type="submit" value="search">

</form>
</div>

<div>
	<div>
		<h2>分类：</h2>
		<p>
		   <a href="?ftype=0&cat_id=<?=$cat_id?>&keyword=<?=$keyword?>" <?php if($ftype==false){ echo 'class="red"';}?> >全部</a> 
		   <?php foreach ($ftypeList as $val) { ?>	
				
		   <a <?php if( isset($val["isred"]) && $val["isred"]){ echo 'class="red"';}?> href='?ftype=<?=$val["cat_id"]?>&keyword=<?=$keyword?>&brand_id=<?=$brand_id?>'><?=$val["cat_name"]?></a>
		   <?php } ?>
		</p>
		<p>
			 <?php foreach ($typeList as $val) { ?>	
				
		   <a <?php if( isset($val["isred"]) && $val["isred"]){ echo 'class="red"';}?> href='?ftype=<?=$ftype?>&cat_id=<?=$val["cat_id"]?>&keyword=<?=$keyword?>'><?=$val["cat_name"]?></a>
		   <?php } ?>
		</p>
		
	</div>
	<div>
		<h2>品牌：</h2>
		<p>
		   <a href="?brand_id=0&ftype=<?=$ftype?>&cat_id=<?=$cat_id?>&keyword=<?=$keyword?>" <?php if($brand_id==false){ echo 'class="red"';}?> >全部</a> 
		   <?php foreach ($brandList as $val) { ?>	
				
		   <a <?php if( isset($val["isred"]) && $val["isred"]){ echo 'class="red"';}?> href='?brand_id=<?=$val["brand_id"]?>&ftype=<?=$ftype?>&cat_id=<?=$cat_id?>&keyword=<?=$keyword?>'><?=$val["brand_name"]?></a>
		   <?php } ?>
		</p>

	</div>
</div>

<div id="list">

    <table align="left" border="1" width="100%">
	    <?php if ($goodsList == false){ ?>
			<tr>
			<td>没有数据</td>
		</tr>
		<?php } else {?>
		<tr>
			<td><?php echo "<pre>";print_r($goodsList);?></td>
		</tr>
		<?php } ?>

	</table>
</div>

<div id="pagenav">
	<?=$navstr?>
</div>